package com.share.dip.demo1;
// 低层模块：灯泡 (实现抽象)
public class LightBulb implements SwitchableDevice{
    private boolean on;

    @Override
    public boolean isOn() {
        return false;
    }

    @Override
    public void turnOn() {

    }

    @Override
    public void turnOff() {

    }
    // ... 实现 isOn(), turnOn(), turnOff() ...
}
